package kr.hkit.powerjava.project_cafe;

import java.nio.channels.SeekableByteChannel;

public class Product {

	private String prodId;
	private String prodName;
	private int prodPrice;
	private int prodSales;
	private int prodMargin;
	private int sellingPrice;//
	
	
	private int rank;
	private double supply;
	private double vat;
	private double marginPrice;
	
	
	public Product() {
	}

	public Product(String prodId, String prodName, int prodPrice,
			int prodSales, int prodMargin, int sellingPrice) {
		this.prodId = prodId;
		this.prodName = prodName;
		this.prodPrice = prodPrice;
		this.prodSales = prodSales;
		this.prodMargin = prodMargin;
		this.sellingPrice = sellingPrice;
	}
	
	

	public Product(String prodId, String prodName, int prodPrice,
			int prodSales, int prodMargin) {
		super();
		this.prodId = prodId;
		this.prodName = prodName;
		this.prodPrice = prodPrice;
		this.prodSales = prodSales;
		this.prodMargin = prodMargin;
	}

	public Product(String prodId, String prodName) {
		this.prodId = prodId;
		this.prodName = prodName;
	}

	
	public Product(int rank, String prodId, String prodName, int prodPrice,
			int prodSales,  double supply, double vat,
			int sellingPrice,int prodMargin,  double marginPrice) {
		super();
		this.rank = rank;
		this.prodId = prodId;
		this.prodName = prodName;
		this.prodPrice = prodPrice;
		this.prodSales = prodSales;
		this.supply = supply;
		this.vat = vat;
		this.sellingPrice = sellingPrice;
		this.prodMargin = prodMargin;
		this.marginPrice = marginPrice;
	}

	
	public String getProdId() {
		return prodId;
	}

	public void setProdId(String prodId) {
		this.prodId = prodId;
	}

	public String getProdName() {
		return prodName;
	}

	public void setProdName(String prodName) {
		this.prodName = prodName;
	}

	public int getProdPrice() {
		return prodPrice;
	}

	public void setProdPrice(int prodPrice) {
		this.prodPrice = prodPrice;
	}

	public int getProdSales() {
		return prodSales;
	}

	public void setProdSales(int prodSales) {
		this.prodSales = prodSales;
	}

	public int getProdMargin() {
		return prodMargin;
	}

	public void setProdMargin(int prodMargin) {
		this.prodMargin = prodMargin;
	}

	
	public int getRank() {
		return rank;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public double getSupply() {
		return supply;
	}

	public void setSupply(double supply) {
		this.supply = supply;
	}

	public double getVat() {
		return vat;
	}

	public void setVat(double vat) {
		this.vat = vat;
	}

	public int getSellingPrice() {
		return sellingPrice;
	}

	public void setSellingPrice(int sellingPrice) {
		this.sellingPrice = sellingPrice;
	}

	public double getMarginPrice() {
		return marginPrice;
	}

	public void setMarginPrice(double marginPrice) {
		this.marginPrice = marginPrice;
	}

	@Override
	public String toString() {
		return String
				.format("입력 정보 [제품코드=%s, 제품명=%s, 제품단가=%s, 판매수량=%s, 마진율=%s]",
						prodId, prodName, prodPrice, prodSales, prodMargin);
	}


	/*@Override
	public String toString() {
		return String
				.format("Product [prodId=%s, prodName=%s, prodPrice=%s, prodSales=%s, prodMargin=%s, rank=%s, supply=%s, vat=%s, sellingPrice=%s, marginPrice=%s]",
						prodId, prodName, prodPrice, prodSales, prodMargin,
						rank, supply, vat, sellingPrice, marginPrice);
	}
	*/
	
	
}
